const del = require('del')
const chalk = require('chalk')
const doneLog = chalk.bgGreen.white(' DONE ') + ' '

if (process.env.BUILD_TARGET === 'clean') clean()

function clean() {
    del.sync(['src/render/dist/*', 'build/*', '!build/icons', '!build/lib', '!build/lib/electron-build.*', '!build/icons/icon.*'])
    console.log(`\n${doneLog}clear done`)
    process.exit()
}

